package com.webapp.model;
import com.webapp.constants.RetCode;

/**
 * @Author: Jimmy Li
 * @Mail: jimmy.c.li@cn.pwc.com
 * @Date: 27 Mar 2020
 * @Description: 返回对象实体
 */

public class RetResult<T> {

	/**
	 * 状态码
	 */
	public int responseCode;

	/**
	 * 提示信息
	 */
	private String responseMsg;
	
	/**
	 * 返回数据
	 */
	private T data;

	public RetResult<T> setCode(RetCode retCode) {
		this.responseCode = retCode.responseCode;
		return this;
	}

	public int getresponseCode() {
		return responseCode;
	}

	public RetResult<T> setCode(int responseCode ) {
		this.responseCode = responseCode;
		return this;
	}

	public String getresponseMsg() {
		return responseMsg;
	}

	public RetResult<T> setMsg(String responseMsg) {
		this.responseMsg = responseMsg;
		return this;
	}

	public T getData() {
		return data;
	}

	public RetResult<T> setData(T data) {
		this.data = data;
		return this;
	}

}
